import Vue from 'vue'
import App from './App'
import './uni.promisify.adaptor'
import http from './utils/request'
// 导入 message.js 模块
import { showMessage } from '@/utils/message'
import store from './store'

Vue.prototype.$msg = showMessage

Vue.prototype.$http = http // 将http方法挂载Vue原型上 利用原型继承给所有组件

Vue.prototype.$format = (number) => Number(number).toFixed(2)

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
  store: store,
  ...App
})
app.$mount()

// 纯vue项目(网页) => uni项目(全端/跨端项目)